package com.nidu.demo.online.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 在线用户详情客户端对象
 *
 * @author auto
 */
@Data
@Schema(description = "在线用户详情客户端对象")
public class OnlineUserDetailCO {

    @Schema(description = "用户ID", example = "1")
    private Long userId;

    @Schema(description = "用户账号", example = "admin")
    private String username;

    @Schema(description = "用户类型", example = "1")
    private Integer userType;

    @Schema(description = "登录IP", example = "192.168.1.1")
    private String userIp;

    @Schema(description = "浏览器UA", example = "Mozilla/5.0")
    private String userAgent;

    @Schema(description = "登录时间", example = "2025-01-01T08:00:00")
    private LocalDateTime loginTime;

    @Schema(description = "最后活跃时间", example = "2025-01-01T12:00:00")
    private LocalDateTime lastActiveTime;

    @Schema(description = "登录类型", example = "1")
    private Integer loginType;

    @Schema(description = "会话ID", example = "session_123456")
    private String sessionId;

    @Schema(description = "在线时长(分钟)", example = "120")
    private Long onlineDuration;
}